package org.jeecg.modules.yks.mng.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.shiro.SecurityUtils;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.yks.mng.entity.YksAdviceMessage;
import org.jeecg.modules.yks.mng.entity.YksEquipmentManageRundata;
import org.jeecg.modules.yks.mng.mapper.YksEquipmentManageRundataMapper;
import org.jeecg.modules.yks.mng.service.IYksEquipmentManageRundataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YksEquipmentManageRundataServiceImpl extends ServiceImpl<YksEquipmentManageRundataMapper, YksEquipmentManageRundata> implements IYksEquipmentManageRundataService {
    @Autowired
    private YksEquipmentManageRundataMapper yksEquipmentManageRundataMapper;
    @Override
    public List<YksEquipmentManageRundata> queryYksEquipmentManageRundataByEquipmentId(String equipmentId){
      return   yksEquipmentManageRundataMapper.queryYksEquipmentManageRundataByEquipmentId(equipmentId);
    }

    @Override
    public void updateIsRevise(YksEquipmentManageRundata yksEquipmentManageRundata){
        String equipmentId=yksEquipmentManageRundata.getEquipmentId();
        String isRevise=yksEquipmentManageRundata.getIsRevise();
        String parameterId=yksEquipmentManageRundata.getParameterId();
        String isReport=yksEquipmentManageRundata.getIsReport();
        yksEquipmentManageRundataMapper.updateIsRevise(equipmentId,isRevise,parameterId,isReport);
    }

}
